<?php

/**
 * ViviendasAlquileres filter form base class.
 *
 * @package    costabravasfr
 * @subpackage filter
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormFilterGeneratedTemplate.php 24171 2009-11-19 16:37:50Z Kris.Wallsmith $
 */
abstract class BaseViviendasAlquileresFormFilter extends BaseFormFilterDoctrine
{
  public function setup()
  {
    $this->setWidgets(array(
      'usuario_id'         => new sfWidgetFormDoctrineChoice(array('model' => $this->getRelatedModelName('Usuario'), 'add_empty' => true)),
      'orderid'            => new sfWidgetFormFilterInput(),
      'nombre'             => new sfWidgetFormFilterInput(array('with_empty' => false)),
      'apart_casa'         => new sfWidgetFormChoice(array('choices' => array('' => '', 0 => '0', 1 => '1', 2 => '2', 3 => '3'))),
      'ambito'             => new sfWidgetFormChoice(array('choices' => array('' => '', 0 => '0', 1 => '1'))),
      'capacidad'          => new sfWidgetFormFilterInput(array('with_empty' => false)),
      'numplantas'         => new sfWidgetFormFilterInput(),
      'desc_ca'            => new sfWidgetFormFilterInput(),
      'desc_ca_red'        => new sfWidgetFormFilterInput(),
      'desc_es'            => new sfWidgetFormFilterInput(),
      'desc_es_red'        => new sfWidgetFormFilterInput(),
      'desc_en'            => new sfWidgetFormFilterInput(),
      'desc_en_red'        => new sfWidgetFormFilterInput(),
      'desc_nl'            => new sfWidgetFormFilterInput(),
      'desc_nl_red'        => new sfWidgetFormFilterInput(),
      'desc_fr'            => new sfWidgetFormFilterInput(),
      'desc_fr_red'        => new sfWidgetFormFilterInput(),
      'desc_de'            => new sfWidgetFormFilterInput(),
      'desc_de_red'        => new sfWidgetFormFilterInput(),
      'desc_it'            => new sfWidgetFormFilterInput(),
      'desc_it_red'        => new sfWidgetFormFilterInput(),
      'diacambio'          => new sfWidgetFormChoice(array('choices' => array('' => '', 0 => '0', 1 => '1', 2 => '2', 3 => '3', 4 => '4', 5 => '5', 6 => '6', 7 => '7'))),
      'activoGM'           => new sfWidgetFormChoice(array('choices' => array('' => 'yes or no', 1 => 'yes', 0 => 'no'))),
      'geolatitud'         => new sfWidgetFormFilterInput(),
      'geolongitud'        => new sfWidgetFormFilterInput(),
      'preciomin'          => new sfWidgetFormFilterInput(),
      'habitaciones'       => new sfWidgetFormFilterInput(),
      'banos'              => new sfWidgetFormFilterInput(),
      'tv'                 => new sfWidgetFormChoice(array('choices' => array('' => 'yes or no', 1 => 'yes', 0 => 'no'))),
      'wifi'               => new sfWidgetFormChoice(array('choices' => array('' => 'yes or no', 1 => 'yes', 0 => 'no'))),
      'satelite'           => new sfWidgetFormChoice(array('choices' => array('' => 'yes or no', 1 => 'yes', 0 => 'no'))),
      'calefaccion'        => new sfWidgetFormChoice(array('choices' => array('' => 'yes or no', 1 => 'yes', 0 => 'no'))),
      'aire'               => new sfWidgetFormChoice(array('choices' => array('' => 'yes or no', 1 => 'yes', 0 => 'no'))),
      'lavadora'           => new sfWidgetFormChoice(array('choices' => array('' => 'yes or no', 1 => 'yes', 0 => 'no'))),
      'lavavajillas'       => new sfWidgetFormChoice(array('choices' => array('' => 'yes or no', 1 => 'yes', 0 => 'no'))),
      'microondas'         => new sfWidgetFormChoice(array('choices' => array('' => 'yes or no', 1 => 'yes', 0 => 'no'))),
      'cafetera'           => new sfWidgetFormChoice(array('choices' => array('' => 'yes or no', 1 => 'yes', 0 => 'no'))),
      'tostadora'          => new sfWidgetFormChoice(array('choices' => array('' => 'yes or no', 1 => 'yes', 0 => 'no'))),
      'plancha'            => new sfWidgetFormChoice(array('choices' => array('' => 'yes or no', 1 => 'yes', 0 => 'no'))),
      'dvd'                => new sfWidgetFormChoice(array('choices' => array('' => 'yes or no', 1 => 'yes', 0 => 'no'))),
      'chimenea'           => new sfWidgetFormChoice(array('choices' => array('' => 'yes or no', 1 => 'yes', 0 => 'no'))),
      'piscina'            => new sfWidgetFormChoice(array('choices' => array('' => '', 0 => '0', 1 => '1', 2 => '2'))),
      'jardin'             => new sfWidgetFormChoice(array('choices' => array('' => '', 0 => '0', 1 => '1', 2 => '2'))),
      'garaje'             => new sfWidgetFormChoice(array('choices' => array('' => '', 0 => '0', 1 => '1', 2 => '2'))),
      'parking'            => new sfWidgetFormChoice(array('choices' => array('' => 'yes or no', 1 => 'yes', 0 => 'no'))),
      'animales'           => new sfWidgetFormChoice(array('choices' => array('' => 'yes or no', 1 => 'yes', 0 => 'no'))),
      'terraza'            => new sfWidgetFormChoice(array('choices' => array('' => 'yes or no', 1 => 'yes', 0 => 'no'))),
      'mueblesjardin'      => new sfWidgetFormChoice(array('choices' => array('' => 'yes or no', 1 => 'yes', 0 => 'no'))),
      'barbacoa'           => new sfWidgetFormChoice(array('choices' => array('' => 'yes or no', 1 => 'yes', 0 => 'no'))),
      'vistas'             => new sfWidgetFormChoice(array('choices' => array('' => 'yes or no', 1 => 'yes', 0 => 'no'))),
      'accesominusvalidos' => new sfWidgetFormChoice(array('choices' => array('' => 'yes or no', 1 => 'yes', 0 => 'no'))),
      'distplaya'          => new sfWidgetFormFilterInput(),
      'activo'             => new sfWidgetFormChoice(array('choices' => array('' => 'yes or no', 1 => 'yes', 0 => 'no'))),
      'galeria'            => new sfWidgetFormChoice(array('choices' => array('' => 'yes or no', 1 => 'yes', 0 => 'no'))),
      'calendario'         => new sfWidgetFormChoice(array('choices' => array('' => 'yes or no', 1 => 'yes', 0 => 'no'))),
      'fechaInicioCal'     => new sfWidgetFormFilterDate(array('from_date' => new sfWidgetFormDate(), 'to_date' => new sfWidgetFormDate())),
      'fechaFinCal'        => new sfWidgetFormFilterDate(array('from_date' => new sfWidgetFormDate(), 'to_date' => new sfWidgetFormDate())),
      'zona_id'            => new sfWidgetFormDoctrineChoice(array('model' => $this->getRelatedModelName('Zonas'), 'add_empty' => true)),
      'created_at'         => new sfWidgetFormFilterDate(array('from_date' => new sfWidgetFormDate(), 'to_date' => new sfWidgetFormDate(), 'with_empty' => false)),
      'updated_at'         => new sfWidgetFormFilterDate(array('from_date' => new sfWidgetFormDate(), 'to_date' => new sfWidgetFormDate(), 'with_empty' => false)),
      'slug'               => new sfWidgetFormFilterInput(),
    ));

    $this->setValidators(array(
      'usuario_id'         => new sfValidatorDoctrineChoice(array('required' => false, 'model' => $this->getRelatedModelName('Usuario'), 'column' => 'id')),
      'orderid'            => new sfValidatorSchemaFilter('text', new sfValidatorInteger(array('required' => false))),
      'nombre'             => new sfValidatorPass(array('required' => false)),
      'apart_casa'         => new sfValidatorChoice(array('required' => false, 'choices' => array(0 => '0', 1 => '1', 2 => '2', 3 => '3'))),
      'ambito'             => new sfValidatorChoice(array('required' => false, 'choices' => array(0 => '0', 1 => '1'))),
      'capacidad'          => new sfValidatorSchemaFilter('text', new sfValidatorInteger(array('required' => false))),
      'numplantas'         => new sfValidatorSchemaFilter('text', new sfValidatorInteger(array('required' => false))),
      'desc_ca'            => new sfValidatorPass(array('required' => false)),
      'desc_ca_red'        => new sfValidatorPass(array('required' => false)),
      'desc_es'            => new sfValidatorPass(array('required' => false)),
      'desc_es_red'        => new sfValidatorPass(array('required' => false)),
      'desc_en'            => new sfValidatorPass(array('required' => false)),
      'desc_en_red'        => new sfValidatorPass(array('required' => false)),
      'desc_nl'            => new sfValidatorPass(array('required' => false)),
      'desc_nl_red'        => new sfValidatorPass(array('required' => false)),
      'desc_fr'            => new sfValidatorPass(array('required' => false)),
      'desc_fr_red'        => new sfValidatorPass(array('required' => false)),
      'desc_de'            => new sfValidatorPass(array('required' => false)),
      'desc_de_red'        => new sfValidatorPass(array('required' => false)),
      'desc_it'            => new sfValidatorPass(array('required' => false)),
      'desc_it_red'        => new sfValidatorPass(array('required' => false)),
      'diacambio'          => new sfValidatorChoice(array('required' => false, 'choices' => array(0 => '0', 1 => '1', 2 => '2', 3 => '3', 4 => '4', 5 => '5', 6 => '6', 7 => '7'))),
      'activoGM'           => new sfValidatorChoice(array('required' => false, 'choices' => array('', 1, 0))),
      'geolatitud'         => new sfValidatorSchemaFilter('text', new sfValidatorNumber(array('required' => false))),
      'geolongitud'        => new sfValidatorSchemaFilter('text', new sfValidatorNumber(array('required' => false))),
      'preciomin'          => new sfValidatorSchemaFilter('text', new sfValidatorNumber(array('required' => false))),
      'habitaciones'       => new sfValidatorSchemaFilter('text', new sfValidatorInteger(array('required' => false))),
      'banos'              => new sfValidatorSchemaFilter('text', new sfValidatorInteger(array('required' => false))),
      'tv'                 => new sfValidatorChoice(array('required' => false, 'choices' => array('', 1, 0))),
      'wifi'               => new sfValidatorChoice(array('required' => false, 'choices' => array('', 1, 0))),
      'satelite'           => new sfValidatorChoice(array('required' => false, 'choices' => array('', 1, 0))),
      'calefaccion'        => new sfValidatorChoice(array('required' => false, 'choices' => array('', 1, 0))),
      'aire'               => new sfValidatorChoice(array('required' => false, 'choices' => array('', 1, 0))),
      'lavadora'           => new sfValidatorChoice(array('required' => false, 'choices' => array('', 1, 0))),
      'lavavajillas'       => new sfValidatorChoice(array('required' => false, 'choices' => array('', 1, 0))),
      'microondas'         => new sfValidatorChoice(array('required' => false, 'choices' => array('', 1, 0))),
      'cafetera'           => new sfValidatorChoice(array('required' => false, 'choices' => array('', 1, 0))),
      'tostadora'          => new sfValidatorChoice(array('required' => false, 'choices' => array('', 1, 0))),
      'plancha'            => new sfValidatorChoice(array('required' => false, 'choices' => array('', 1, 0))),
      'dvd'                => new sfValidatorChoice(array('required' => false, 'choices' => array('', 1, 0))),
      'chimenea'           => new sfValidatorChoice(array('required' => false, 'choices' => array('', 1, 0))),
      'piscina'            => new sfValidatorChoice(array('required' => false, 'choices' => array(0 => '0', 1 => '1', 2 => '2'))),
      'jardin'             => new sfValidatorChoice(array('required' => false, 'choices' => array(0 => '0', 1 => '1', 2 => '2'))),
      'garaje'             => new sfValidatorChoice(array('required' => false, 'choices' => array(0 => '0', 1 => '1', 2 => '2'))),
      'parking'            => new sfValidatorChoice(array('required' => false, 'choices' => array('', 1, 0))),
      'animales'           => new sfValidatorChoice(array('required' => false, 'choices' => array('', 1, 0))),
      'terraza'            => new sfValidatorChoice(array('required' => false, 'choices' => array('', 1, 0))),
      'mueblesjardin'      => new sfValidatorChoice(array('required' => false, 'choices' => array('', 1, 0))),
      'barbacoa'           => new sfValidatorChoice(array('required' => false, 'choices' => array('', 1, 0))),
      'vistas'             => new sfValidatorChoice(array('required' => false, 'choices' => array('', 1, 0))),
      'accesominusvalidos' => new sfValidatorChoice(array('required' => false, 'choices' => array('', 1, 0))),
      'distplaya'          => new sfValidatorSchemaFilter('text', new sfValidatorNumber(array('required' => false))),
      'activo'             => new sfValidatorChoice(array('required' => false, 'choices' => array('', 1, 0))),
      'galeria'            => new sfValidatorChoice(array('required' => false, 'choices' => array('', 1, 0))),
      'calendario'         => new sfValidatorChoice(array('required' => false, 'choices' => array('', 1, 0))),
      'fechaInicioCal'     => new sfValidatorDateRange(array('required' => false, 'from_date' => new sfValidatorDate(array('required' => false)), 'to_date' => new sfValidatorDateTime(array('required' => false)))),
      'fechaFinCal'        => new sfValidatorDateRange(array('required' => false, 'from_date' => new sfValidatorDate(array('required' => false)), 'to_date' => new sfValidatorDateTime(array('required' => false)))),
      'zona_id'            => new sfValidatorDoctrineChoice(array('required' => false, 'model' => $this->getRelatedModelName('Zonas'), 'column' => 'id')),
      'created_at'         => new sfValidatorDateRange(array('required' => false, 'from_date' => new sfValidatorDateTime(array('required' => false, 'datetime_output' => 'Y-m-d 00:00:00')), 'to_date' => new sfValidatorDateTime(array('required' => false, 'datetime_output' => 'Y-m-d 23:59:59')))),
      'updated_at'         => new sfValidatorDateRange(array('required' => false, 'from_date' => new sfValidatorDateTime(array('required' => false, 'datetime_output' => 'Y-m-d 00:00:00')), 'to_date' => new sfValidatorDateTime(array('required' => false, 'datetime_output' => 'Y-m-d 23:59:59')))),
      'slug'               => new sfValidatorPass(array('required' => false)),
    ));

    $this->widgetSchema->setNameFormat('viviendas_alquileres_filters[%s]');

    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);

    $this->setupInheritance();

    parent::setup();
  }

  public function getModelName()
  {
    return 'ViviendasAlquileres';
  }

  public function getFields()
  {
    return array(
      'id'                 => 'Number',
      'usuario_id'         => 'ForeignKey',
      'orderid'            => 'Number',
      'nombre'             => 'Text',
      'apart_casa'         => 'Enum',
      'ambito'             => 'Enum',
      'capacidad'          => 'Number',
      'numplantas'         => 'Number',
      'desc_ca'            => 'Text',
      'desc_ca_red'        => 'Text',
      'desc_es'            => 'Text',
      'desc_es_red'        => 'Text',
      'desc_en'            => 'Text',
      'desc_en_red'        => 'Text',
      'desc_nl'            => 'Text',
      'desc_nl_red'        => 'Text',
      'desc_fr'            => 'Text',
      'desc_fr_red'        => 'Text',
      'desc_de'            => 'Text',
      'desc_de_red'        => 'Text',
      'desc_it'            => 'Text',
      'desc_it_red'        => 'Text',
      'diacambio'          => 'Enum',
      'activoGM'           => 'Boolean',
      'geolatitud'         => 'Number',
      'geolongitud'        => 'Number',
      'preciomin'          => 'Number',
      'habitaciones'       => 'Number',
      'banos'              => 'Number',
      'tv'                 => 'Boolean',
      'wifi'               => 'Boolean',
      'satelite'           => 'Boolean',
      'calefaccion'        => 'Boolean',
      'aire'               => 'Boolean',
      'lavadora'           => 'Boolean',
      'lavavajillas'       => 'Boolean',
      'microondas'         => 'Boolean',
      'cafetera'           => 'Boolean',
      'tostadora'          => 'Boolean',
      'plancha'            => 'Boolean',
      'dvd'                => 'Boolean',
      'chimenea'           => 'Boolean',
      'piscina'            => 'Enum',
      'jardin'             => 'Enum',
      'garaje'             => 'Enum',
      'parking'            => 'Boolean',
      'animales'           => 'Boolean',
      'terraza'            => 'Boolean',
      'mueblesjardin'      => 'Boolean',
      'barbacoa'           => 'Boolean',
      'vistas'             => 'Boolean',
      'accesominusvalidos' => 'Boolean',
      'distplaya'          => 'Number',
      'activo'             => 'Boolean',
      'galeria'            => 'Boolean',
      'calendario'         => 'Boolean',
      'fechaInicioCal'     => 'Date',
      'fechaFinCal'        => 'Date',
      'zona_id'            => 'ForeignKey',
      'created_at'         => 'Date',
      'updated_at'         => 'Date',
      'slug'               => 'Text',
    );
  }
}
